package com.case_demo.factory.case1;

public class Facotry {
	public static Sample creator(int which)
	{
		switch(which)
		{
			case 1:
				return new SampleA();
			case 2:
				return new SampleB();
		}
		
		return null;
	}
}
